package com.example.intermingle.util;

/**
 * @author 绿松石
 * @version V1.0
 * @Title ResponseMsg
 * @Description
 * @date 2021年08月23日 09:06
 * @since V1.0
 */
public class ResponseMsg<T> {
    /**
     * 状态码
     */
    private int status;
    /**
     * 错误信息
     */
    private String msg;
    /**
     * 返回信息
     */
    private T body;

    public ResponseMsg(int status, String msg, T body) {
        this.status = status;
        this.msg = msg;
        this.body = body;
    }

    public ResponseMsg() {
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getBody() {
        return body;
    }

    public void setBody(T body) {
        this.body = body;
    }
}
